package org.ust.extraction;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;

public class Main
{

	/**
	 * @param args
	 */
	public static void main ( String [ ] args )
	{
		// String str =
		// "//Users//Nelson//SpringSourceWorkspace//ApiRecommendationSys//abbot-1.0.2";
		// File folderName = new File ( str );
		// Finder finder = new Finder ( );
		// finder.extract ( folderName );

		// String fileStr = "//Users//Nelson//Desktop//Main.class";
		// try
		// {
		// new Analyzer ( new File ( fileStr ) );
		// }
		// catch ( IOException e )
		// {
		// e.printStackTrace ( );
		// }

		String folderContainingZips = "//Users//Nelson//SpringSourceWorkspace//ApiRecommendationSys//APIs//";
		String zipFileName = "abbot-1.0.2.zip";
		File targetZipFile = new File ( folderContainingZips + zipFileName );
		Uncompressor uncompressor = null;
		try
		{
			uncompressor = new Uncompressor ( targetZipFile );
		}
		catch ( FileNotFoundException e )
		{
			e.printStackTrace ( );
		}
		catch ( NotZipFileException e )
		{
			e.printStackTrace ( );
		}
		catch ( IOException e )
		{
			e.printStackTrace ( );
		}
	}

}
